package org.jeecg.modules.basic.warehouse.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 仓库-库区-库位
 * @Author: jeecg-boot
 * @Date:   2023-08-09
 * @Version: V1.0
 */
@Data
@TableName("wms_basic_warehouse_area_location")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_basic_warehouse_area_location对象", description="仓库-库区-库位")
public class WmsBasicWarehouseAreaLocation implements Serializable {
    //private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private java.lang.String sysOrgCode;
	/**所属仓库*/
	@Excel(name = "所属仓库", width = 15)
    @ApiModelProperty(value = "所属仓库id")
    private java.lang.String wmsBasicWarehouseId;
	/**库区id*/
	@Excel(name = "库区id", width = 15)
    @ApiModelProperty(value = "所属库区id")
    private java.lang.String wmsBasicWarehouseAreaId;
	/**显示顺序*/
	@Excel(name = "显示顺序", width = 15)
    @ApiModelProperty(value = "显示顺序")
    private java.lang.Integer orderIndex;
	/**库位名称*/
	@Excel(name = "库位名称", width = 15)
    @ApiModelProperty(value = "库位名称")
    private java.lang.String name;
	/**库位编码*/
	@Excel(name = "库位编码", width = 15)
    @ApiModelProperty(value = "库位编码")
    private java.lang.String code;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "is_enabled")
	@Dict(dicCode = "is_enabled")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String description;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private java.lang.String tenantId;
	/**逻辑删*/
	@Excel(name = "逻辑删", width = 15)
    @ApiModelProperty(value = "逻辑删")
    @TableLogic
    private java.lang.String delFlag;
	/**最大容量*/
	@Excel(name = "最大容量", width = 15)
    @ApiModelProperty(value = "最大容量")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal maxCapacity;
	/**预警容量*/
	@Excel(name = "预警容量", width = 15)
    @ApiModelProperty(value = "预警容量")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal warningCapacity;
    @Excel(name = "最大宽度", width = 15)
    @ApiModelProperty(value = "最大宽度")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal maxWidth;

    @Excel(name = "是否临时移库用", width = 15)
    @ApiModelProperty(value = "是否临时移库用（1 是 0 否）")
    @Dict(dicCode = "yn")
    private java.lang.String isTemporaryMove;

    @Excel(name = "最小库存", width = 15)
    @ApiModelProperty(value = "最小库存")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal minCapacity;

    /**最大容量(辅单位)*/
    @Excel(name = "最大容量(辅单位)", width = 15)
    @ApiModelProperty(value = "最大容量(辅单位)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal maxCapacityAssist;
    /**预警容量(辅单位)*/
    @Excel(name = "预警容量(辅单位)", width = 15)
    @ApiModelProperty(value = "预警容量(辅单位)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal warningCapacityAssist;
    /**最小库存(辅单位)*/
    @Excel(name = "最小库存(辅单位)", width = 15)
    @ApiModelProperty(value = "最小库存(辅单位)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal minCapacityAssist;
    @Excel(name = "是否是基准点", width = 15)
    @ApiModelProperty(value = "是否是基准点（1 是 0 否）")
    @Dict(dicCode = "yn")
    private String isDatum;
    @Excel(name = "是否是包装线基准点", width = 15)
    @ApiModelProperty(value = "是否是包装线基准点（1 是 0 否）")
    @Dict(dicCode = "yn")
    private String isPackageDatum;

    /**
     * 基准算法计算结果
     */
    @TableField(exist = false)
    private BigDecimal result;
    /**所属仓库名称*/
    @TableField(exist = false)
    @ApiModelProperty(value = "所属仓库名称")
    private java.lang.String wmsBasicWarehouseName;
    /**库区名称*/
    @TableField(exist = false)
    @ApiModelProperty(value = "库区名称")
    private java.lang.String wmsBasicWarehouseAreaName;
}
